﻿<UserControl x:Class="urBook.Gui.PopupWindow"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d">
    <Grid>
        <Grid HorizontalAlignment="Stretch" Margin="0" VerticalAlignment="Stretch" MinWidth="800" MinHeight="600" Background="Black" Opacity="0.5" OpacityMask="Black"/>
        <Grid Width="600" Height="400" HorizontalAlignment="Center" VerticalAlignment="Center">
            <Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" StrokeThickness="1" RadiusX="20" RadiusY="20" Fill="Black" />
            <Rectangle HorizontalAlignment="Stretch" Margin="8" VerticalAlignment="Stretch" StrokeThickness="1" RadiusX="18" RadiusY="18" Fill="White"/>
        </Grid>
        <Grid x:Name="Container" Width="600" Height="400" HorizontalAlignment="Center" VerticalAlignment="Center"/>
        <Popup IsOpen="True" Placement="Right" PlacementTarget="{Binding ElementName=Container}" StaysOpen="True" AllowsTransparency="True" HorizontalOffset="-48" VerticalOffset="16">
            <Image Height="32" Name="delete" Source="data/images/delete_32.png" Width="32" MouseDown="delete_MouseDown"/>
        </Popup>
    </Grid>
</UserControl>
